#include <iostream>
#include <string>
#include <conio.h>

int main()
{
	std::string text;
	std::string wprobel[50];
	std::getline( std::cin , text);
	int line = text.length();
	std::cout << "line of text = " << line << std::endl;
	int j = 0;
	int count0 = 0,
		count1 = 0;
	for(std::string::iterator i = text.begin() ; i < text.end(); ++i){
		char c = text[j];
		putchar (toupper(c));
		j++;
	}
	std::cout << std::endl;
	j = 0;
	int wpi = 0;
	for(std::string::iterator i = text.begin() ; i < text.end(); ++i){
		if(text[j] == ' ' ){
			wpi++;
		}
		else{
			wprobel[wpi] += text[j] ;
		}
		j++;
	}
	for(int k = 0 ; k <= wpi ; ++k)
	{
		std::cout << wprobel[k] << std::endl ;
	}
	bool t = true ;
	for(int k = 0 ; k < line  ; ++k)
	{
		if((text[k] != '0') && (text[k] != '1')){
			t = false;
			break;
		}
	}
	if(t){
		std::cout << "this string are binar" << std::endl ;
	}
	else{
		std::cout << "this string arn`t binar" << std::endl;
	}
	for(int k = 0 ; k < line ; ++k)
	{
		if(text[k] == '0')
		{
			count0++;
		}
		else if(text[k] == '1')
		{
			count1++;
		}
	}
	std::cout << "count of 0 = " << count0 << std::endl;
	std::cout << "count of 1 = " << count1 << std::endl;
	getch();
	return 0;
} 